<template>
  <div>
    <h2>我是子组件</h2>
    <button @click="$emit('invockParentIncrease')">count++</button>

    <button @click="increase">父组件的count++</button>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'

let emits = defineEmits(['invockParentIncrease'])
let increase = () => {
  emits('invockParentIncrease')
}
</script>
